/**
 * Created by afer on 2017/8/27.
 */


new Vue({
    el: '#form',
    data: {
        coinname: '',
        coinimage: null
    },
    methods: {
        addcoinsdes: function () {
            var content = window.document.getElementById('ts').value;
            var file = document.getElementById('coinimage').files[0];
            var fd = new FormData();
            fd.append('coinimage', file);

            const formData = new FormData();
            formData.append('coinimage', file);
            formData.append('username', localStorage.username);
            formData.append('sessionID', localStorage.sessionID);

            console.log(formData);

            this.$http.post('/test', formData);
        }
    }
})